package com.pantuo.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pantuo.sys.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserPermissionDao extends BaseMapper<Permission> {

    //删除用户与权限的中间表
    public void deleteUserAndPer(Integer id);

    //根据权限的名称获取权限id
    public Integer findIdByField(String Field);

    //保存中间表信息
    public void insertObjects(Integer userId, List<Integer> permissionIds);

}
